<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/ajax/addShoppingCar.js"></script>
<script type="text/javascript">
$(function(){
	var productlist=cart.getproductlist();//取出购物车商品  
	console.log(productlist.length);
	$('#carnum').html(productlist.length);
})
	
</script>
<!--header star-->
		<div class="header clearfix">			
			<div class="top clearfix">
				<div class="topctent clearfix">
					<div class="left clearfix fl">
						公告：您好，欢迎登录北京椿龄文化发展有限公司
					</div>
					<div class="right clearfix fr">
						<div class="zuo clearfix fl">
							<ul class="clearfix fl">
								<li>
									<span class="fl">欢迎</span>
									<a href="${pageContext.request.contextPath }/grxx.jsp" class="fl">
									<c:out value="${sessionScope.userName }"/>+<c:out value="${sessionScope.userCode }"/></a>
									<span class="fl">进入商城</span>
								</li>
								<li>
									<a href="${pageContext.request.contextPath }/register.jsp">
										免费注册
									</a>
								</li>
								<li>
									<a href="${pageContext.request.contextPath }/settled.jsp">
										艺术家入驻
									</a>
								</li>
							</ul>
						</div>						
						<div class="shopcar-btn clearfix fl">
							<a href="${pageContext.request.contextPath }/shopping.jsp" class="box-s">
								购物车（<span id="carnum">0</span>）
							</a>
						</div>
						<div class="fenxiang clearfix fl">
							<span class="fl">分享到：</span>
							<ul class="clearfix fl">
								<li><a href="#"><img src="${pageContext.request.contextPath }/img/sina.png"/></a></li>
								<li><a href="#"><img src="${pageContext.request.contextPath }/img/qq.png"/></a></li>
								<li><a href="#"><img src="${pageContext.request.contextPath }/img/wechat.png"/></a></li>
							</ul>
						</div>
					</div>					
				</div>
			</div>			
			<div class="bottom clearfix">
				<div class="logo clearfix">
					<a href="${pageContext.request.contextPath }/index.jsp"></a>
				</div>
				<div class="search clearfix fr ra5">
					<input type="text" class="fl" name="" id="" value="" placeholder="请输入您要搜索的内容" />
					<input type="button" name="" id="" value="搜索" class="fl box-s" />
				</div>
			</div>
		</div>
		<!--header end-->
		